package com.devilvan.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.beans.ConstructorProperties;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class Dept implements Serializable {
    @JsonProperty("deptId")
    private Long deptId;
    @JsonProperty("deptName")
    private String deptName;
    @JsonProperty("dbSource")
    private String dbSource;

    public Dept(String deptName, String dbSource) {
        this.deptName = deptName;
        this.dbSource = dbSource;
    }

}
